package com.cmwa.solution.business.investTrade.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cmwa.solution.base.entity.Page;
import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.business.investTrade.dao.TradeTrialResultDao;
import com.cmwa.solution.business.investTrade.entity.TradeTrialResultVo;
import com.cmwa.solution.business.investTrade.service.TradeTrialResultService;

/**
 * 交易风控试算结果Dao
 * @author ex-chenbq
 *
 */
@Service
public class TradeTrialResultServiceImpl implements TradeTrialResultService{

	@Autowired
	private TradeTrialResultDao tradeTrialResultDao;
	
	/**
	 * 分页查询交易风控试算结果数据
	 * @param param
	 * @return
	 */
	public Page<TradeTrialResultVo> queryTradeTrialResultListPage(SearchParam param) {
		List<TradeTrialResultVo> items = tradeTrialResultDao.queryTradeTrialResultListPage(param);
		return Page.create(items, param.getStart(), param.getLimit(), param.getTotal());
	}
}
